package com.demo;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;

public class Test {

	public static void main(String[] args) throws Exception {
		List<String> list = new ArrayList<>();
		list.add("xxx");
		/*	
		EmpStatus login = EmpStatus.LOGIN;
		System.out.println(login.name());
		System.out.println(login.ordinal());
		
		Statement dataSource=null;
		try (
		        Connection conn = dataSource.getConnection();
		        PreparedStatement preparedStatement = conn.prepareStatement("");
			) {
		    preparedStatement.setInt(1, 10);
		    preparedStatement.setInt(2, 1001);
		    try (ResultSet rs = preparedStatement.executeQuery()) {
		        while(rs.next()) {
		            System.out.println(rs.getInt(1));
		            System.out.println(rs.getInt(2));
		        }
		    }
		}
		
	byte[] bytes = "中国".getBytes("GBK");
		byte[] bytes2 = "中国".getBytes("UTF-8");
		String s = new String(bytes,"GBK");
		System.out.println(bytes.length);
		System.out.println(bytes2.length);
		System.out.println(s);*/
	}

}
